package com.xsr.service.impl;

import com.xsr.domain.Account;
import com.xsr.mapper.AccountMapper;
import com.xsr.service.AccountService;

import java.util.List;

/**
 * @author 邢式瑞
 * @version 1.0
 * @project zhujie
 * @date 2022/9/6 21:48
 */
public class AccountServiceImpl  implements AccountService {
    private AccountMapper accountMapper;
    @Override
    public void save(Account account) {
        accountMapper.save(account);
    }

    @Override
    public void delete(Integer id) {
 accountMapper.delete(id);
    }

    @Override
    public void update(Account account) {
    accountMapper.update(account);
    }

    @Override
    public List<Account> findAll() {
        return  accountMapper.findAll();
    }

    @Override
    public Account findById(Integer id) {
        return accountMapper.findById(id);
    }
}
